Add input hints for Emoji input
authorMatthias Clasen <mclasen@redhat.com>
Sat, 2 Sep 2017 12:42:18 +0000 (08:42 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 2 Sep 2017 12:47:17 +0000 (08:47 -0400)
Allow hinting input methods about whether Emoji support is
useful or not.

gtk/gtkenums.h

index bf3da9f93e246d65aef5d80243f483aa059b0b1f..025fe61a78add382718a43096e77003225b2b07b 100644 (file)
@@ -918,6 +918,8 @@ typedef enum
  * @GTK_INPUT_HINT_INHIBIT_OSK: Suggest to not show an onscreen keyboard
  *     (e.g for a calculator that already has all the keys).
  * @GTK_INPUT_HINT_VERTICAL_WRITING: The text is vertical. Since 3.18
+ * @GTK_INPUT_HINT_EMOJI: Suggest offering Emoji support. Since 3.22.20
+ * @GTK_INPUT_HINT_NO_EMOJI: Suggest not offering Emoji support. Since 3.22.20
  *
  * Describes hints that might be taken into account by input methods
  * or applications. Note that input methods may already tailor their
@@ -942,7 +944,9 @@ typedef enum
   GTK_INPUT_HINT_UPPERCASE_WORDS     = 1 << 5,
   GTK_INPUT_HINT_UPPERCASE_SENTENCES = 1 << 6,
   GTK_INPUT_HINT_INHIBIT_OSK         = 1 << 7,
-  GTK_INPUT_HINT_VERTICAL_WRITING    = 1 << 8
+  GTK_INPUT_HINT_VERTICAL_WRITING    = 1 << 8,
+  GTK_INPUT_HINT_EMOJI               = 1 << 9,
+  GTK_INPUT_HINT_NO_EMOJI            = 1 << 10
 } GtkInputHints;
 
 /**